<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets" >
<ui:composition template="/templates/principal.xhtml" >
<ui:define name="corpo">
<p:layout style="width: auto; height: 500px;"  >  
    <p:layoutUnit position="right" scrollable="true" header="Últimos eventos" resizable="true" width="750" maxWidth="850" minWidth="650">
        <p:tab title="Subdiretoria de Pagamento de Pessoal" >
            <h:form id="ultimasAcoes" prependId="false"  >
                <p:dataList value="#{logEventosBean.listar}" var="evento" itemType="square"  paginator="true" paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="5,30,60" rows="30" >
                    <f:facet name="header">Eventos</f:facet>
                    <h:outputText value="#{evento.dataEvento}" >
                        <!-- <f:convertDateTime dateStyle="full" type="both" timeStyle="full" locale="pt_BR" timeZone="America/Sao_Paulo"/> -->
                        <f:convertDateTime pattern="EEEE, dd 'de' MMMM 'de' yyyy, 'às' HH:mm 'h'" locale="pt_BR" timeZone="America/Sao_Paulo" />
                    </h:outputText>
                    <h:outputText value=", #{evento.descricao}" />
                </p:dataList>  
            </h:form>
        </p:tab>
    </p:layoutUnit>
    <p:layoutUnit position="center" scrollable="true" header="Avisos" >
        <h:panelGrid columns="1" >
            <h:outputLabel value="Utilizar preferencialmente o navegador: Firefox" style="font-style: italic" />
            <h:outputLabel value="Resolução da tela recomendável: 1280 x 768" style="font-style: italic" />
            <br />
            <h:outputLabel value="#{configuracaoBean.avisos}" />
        </h:panelGrid>
    </p:layoutUnit>
</p:layout>
</ui:define>
</ui:composition>
</html>

<!-- style="background-image: url(../resources/imagens/fundo_azul.jpg);" -->